package org.ssp.pojo;

import javax.mail.Session;
import javax.mail.internet.MimeMessage;

public abstract class EmailObject {
	private String username;
	private String password;
	private String from;
	private String to;
	private String subject;
	private String content;
	public EmailObject(String name,String password,String from,String to){
		this.setUsername(name);
		this.setPassword(password);
		this.setFrom(from);
		this.setTo(to);
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public abstract MimeMessage createMail(Session session);

}
